package com.sidneysimmons.financially.utils;

public class StringUtil {
	
	public static boolean isBlankOrNull(String string) {
		if (string == null || string.length() == 0 || onlyContainsSpaces(string)) {
			return true;
		} else {
			return false;
		}
	}
	
	public static boolean onlyContainsSpaces(String string) {
		for (int i = 0; i < string.length(); i++) {
			if (string.charAt(i) != ' ') {
				return false;
			}
		}
		
		return true;
	}
}